package com.xiaoyu.shenyou.shenyouv1.common.position;


import com.xiaoyu.shenyou.shenyouv1.websocketclient.toserverentity.Position;

import java.util.HashMap;
import java.util.Map;

public class PositionUtil {

    public static final Map<Integer, Position> getPositionById = new HashMap<>();

    public static final Map<String, Position> getPositionByRoomName = new HashMap<>();


    static {
        getPositionById.put(1, new Position().setX(116).setY(346));
        getPositionById.put(2, new Position().setX(243).setY(352));
        getPositionById.put(3, new Position().setX(426).setY(346));
        getPositionById.put(4, new Position().setX(90).setY(513));

        getPositionById.put(5, new Position().setX(267).setY(593));
        getPositionById.put(6, new Position().setX(493).setY(619));
        getPositionById.put(7, new Position().setX(109).setY(782));
        getPositionById.put(8, new Position().setX(241).setY(786));

        getPositionByRoomName.put("火焰山", new Position().setX(116).setY(346));
        getPositionByRoomName.put("女儿国", new Position().setX(243).setY(352));
        getPositionByRoomName.put("高老庄", new Position().setX(426).setY(346));
        getPositionByRoomName.put("花果山", new Position().setX(90).setY(513));

        getPositionByRoomName.put("水帘洞", new Position().setX(267).setY(593));
        getPositionByRoomName.put("五指山", new Position().setX(493).setY(619));
        getPositionByRoomName.put("流沙河", new Position().setX(109).setY(782));
        getPositionByRoomName.put("芭蕉洞", new Position().setX(241).setY(786));

    }

    private PositionUtil() {

    }


}
